home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / localeconv.z / localeconv
Encoding:
Text File  |  1998-10-20  |  22.8 KB  |  265 lines

  1.  
  2.  
  3.  
  4. llllooooccccaaaalllleeeeccccoooonnnnvvvv((((3333CCCC))))                                                  llllooooccccaaaalllleeeeccccoooonnnnvvvv((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _llll_oooo_cccc_aaaa_llll_eeee_cccc_oooo_nnnn_vvvv - get numeric formatting information
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_llll_oooo_cccc_aaaa_llll_eeee_...._hhhh_>>>>
  13.  
  14.      _ssss_tttt_rrrr_uuuu_cccc_tttt _llll_cccc_oooo_nnnn_vvvv _****_llll_oooo_cccc_aaaa_llll_eeee_cccc_oooo_nnnn_vvvv _((((_vvvv_oooo_iiii_dddd_))))_;;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _llll_oooo_cccc_aaaa_llll_eeee_cccc_oooo_nnnn_vvvv sets the components of an object with type _ssss_tttt_rrrr_uuuu_cccc_tttt _llll_cccc_oooo_nnnn_vvvv
  18.      (defined in _llll_oooo_cccc_aaaa_llll_eeee_...._hhhh) with the values appropriate for the formatting of
  19.      numeric quantities (monetary and otherwise) according to the rules of the
  20.      current locale [see _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee(3C)]. The definition of _ssss_tttt_rrrr_uuuu_cccc_tttt _llll_cccc_oooo_nnnn_vvvv is
  21.      given below (the values for the fields in the _CCCC locale are given in
  22.      comments):
  23.  
  24.           _cccc_hhhh_aaaa_rrrr _****_dddd_eeee_cccc_iiii_mmmm_aaaa_llll______pppp_oooo_iiii_nnnn_tttt_;;;;          _////_**** _""""_...._"""" _****_////
  25.           _cccc_hhhh_aaaa_rrrr _****_tttt_hhhh_oooo_uuuu_ssss_aaaa_nnnn_dddd_ssss______ssss_eeee_pppp_;;;;          _////_**** _""""_"""" _((((_zzzz_eeee_rrrr_oooo _llll_eeee_nnnn_gggg_tttt_hhhh _ssss_tttt_rrrr_iiii_nnnn_gggg_)))) _****_////
  26.           _cccc_hhhh_aaaa_rrrr _****_gggg_rrrr_oooo_uuuu_pppp_iiii_nnnn_gggg_;;;;               _////_**** _""""_"""" _****_////
  27.           _cccc_hhhh_aaaa_rrrr _****_iiii_nnnn_tttt______cccc_uuuu_rrrr_rrrr______ssss_yyyy_mmmm_bbbb_oooo_llll_;;;;   _////_**** _""""_"""" _****_////
  28.           _cccc_hhhh_aaaa_rrrr _****_cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll_;;;;   _////_**** _""""_"""" _****_////
  29.           _cccc_hhhh_aaaa_rrrr _****_mmmm_oooo_nnnn______dddd_eeee_cccc_iiii_mmmm_aaaa_llll______pppp_oooo_iiii_nnnn_tttt_;;;; _////_**** _""""_"""" _****_////
  30.           _cccc_hhhh_aaaa_rrrr _****_mmmm_oooo_nnnn______tttt_hhhh_oooo_uuuu_ssss_aaaa_nnnn_dddd_ssss______ssss_eeee_pppp_;;;;      _////_**** _""""_"""" _****_////
  31.           _cccc_hhhh_aaaa_rrrr _****_mmmm_oooo_nnnn______gggg_rrrr_oooo_uuuu_pppp_iiii_nnnn_gggg_;;;;      _////_**** _""""_"""" _****_////
  32.           _cccc_hhhh_aaaa_rrrr _****_pppp_oooo_ssss_iiii_tttt_iiii_vvvv_eeee______ssss_iiii_gggg_nnnn_;;;;          _////_**** _""""_"""" _****_////
  33.           _cccc_hhhh_aaaa_rrrr _****_nnnn_eeee_gggg_aaaa_tttt_iiii_vvvv_eeee______ssss_iiii_gggg_nnnn_;;;;          _////_**** _""""_"""" _****_////
  34.           _cccc_hhhh_aaaa_rrrr _iiii_nnnn_tttt______ffff_rrrr_aaaa_cccc______dddd_iiii_gggg_iiii_tttt_ssss_;;;;         _////_**** _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX _****_////
  35.           _cccc_hhhh_aaaa_rrrr _ffff_rrrr_aaaa_cccc______dddd_iiii_gggg_iiii_tttt_ssss_;;;;        _////_**** _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX _****_////
  36.           _cccc_hhhh_aaaa_rrrr _pppp______cccc_ssss______pppp_rrrr_eeee_cccc_eeee_dddd_eeee_ssss_;;;;      _////_**** _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX _****_////
  37.           _cccc_hhhh_aaaa_rrrr _pppp______ssss_eeee_pppp______bbbb_yyyy______ssss_pppp_aaaa_cccc_eeee_;;;;          _////_**** _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX _****_////
  38.           _cccc_hhhh_aaaa_rrrr _nnnn______cccc_ssss______pppp_rrrr_eeee_cccc_eeee_dddd_eeee_ssss_;;;;      _////_**** _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX _****_////
  39.           _cccc_hhhh_aaaa_rrrr _nnnn______ssss_eeee_pppp______bbbb_yyyy______ssss_pppp_aaaa_cccc_eeee_;;;;          _////_**** _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX _****_////
  40.           _cccc_hhhh_aaaa_rrrr _pppp______ssss_iiii_gggg_nnnn______pppp_oooo_ssss_nnnn_;;;;        _////_**** _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX _****_////
  41.           _cccc_hhhh_aaaa_rrrr _nnnn______ssss_iiii_gggg_nnnn______pppp_oooo_ssss_nnnn_;;;;        _////_**** _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX _****_////
  42.  
  43.      The members of the structure with type _cccc_hhhh_aaaa_rrrr _**** are strings, any of which
  44.      (except _dddd_eeee_cccc_iiii_mmmm_aaaa_llll______pppp_oooo_iiii_nnnn_tttt) can point to _""""_"""", to indicate that the value is not
  45.      available in the current locale or is of zero length.  The members with
  46.      type _cccc_hhhh_aaaa_rrrr are nonnegative numbers, any of which can be _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX (defined
  47.      in the _llll_iiii_mmmm_iiii_tttt_ssss_...._hhhh header file) to indicate that the value is not available
  48.      in the current locale.  The members are the following:
  49.  
  50.      _cccc_hhhh_aaaa_rrrr _****_dddd_eeee_cccc_iiii_mmmm_aaaa_llll______pppp_oooo_iiii_nnnn_tttt
  51.           The decimal-point character used to format non-monetary quantities.
  52.  
  53.      _cccc_hhhh_aaaa_rrrr _****_tttt_hhhh_oooo_uuuu_ssss_aaaa_nnnn_dddd_ssss______ssss_eeee_pppp
  54.           The character used to separate groups of digits to the left of the
  55.           decimal-point character in formatted non-monetary quantities.
  56.  
  57.      _cccc_hhhh_aaaa_rrrr _****_gggg_rrrr_oooo_uuuu_pppp_iiii_nnnn_gggg
  58.           A string in which each element is taken as an integer that indicates
  59.           the number of digits that comprise the current group in a formatted
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. llllooooccccaaaalllleeeeccccoooonnnnvvvv((((3333CCCC))))                                                  llllooooccccaaaalllleeeeccccoooonnnnvvvv((((3333CCCC))))
  71.  
  72.  
  73.  
  74.           non-monetary quantity.  The elements of _gggg_rrrr_oooo_uuuu_pppp_iiii_nnnn_gggg are interpreted
  75.           according to the following:
  76.  
  77.           _CCCC_HHHH_AAAA_RRRR______MMMM_AAAA_XXXX         No further grouping is to be performed.
  78.  
  79.           _0000                The previous element is to be repeatedly used for
  80.                            the remainder of the digits.
  81.  
  82.           _o_t_h_e_r            The value is the number of digits that comprise the
  83.                            current group.  The next element is examined to
  84.                            determine the size of the next group of digits to
  85.                            the left of the current group.
  86.  
  87.      _cccc_hhhh_aaaa_rrrr _****_iiii_nnnn_tttt______cccc_uuuu_rrrr_rrrr______ssss_yyyy_mmmm_bbbb_oooo_llll
  88.             The international currency symbol applicable to the current
  89.             locale, left-justified within a four-character space-padded field.
  90.             The character sequences should match with those specified in:  _I_S_O
  91.             _4_2_1_7:_1_9_8_7 _C_o_d_e_s _f_o_r _t_h_e _R_e_p_r_e_s_e_n_t_a_t_i_o_n _o_f _C_u_r_r_e_n_c_y _a_n_d _F_u_n_d_s.
  92.  
  93.      _cccc_hhhh_aaaa_rrrr _****_cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll
  94.             The local currency symbol applicable to the current locale.
  95.  
  96.      _cccc_hhhh_aaaa_rrrr _****_mmmm_oooo_nnnn______dddd_eeee_cccc_iiii_mmmm_aaaa_llll______pppp_oooo_iiii_nnnn_tttt
  97.             The decimal point used to format monetary quantities.
  98.  
  99.      _cccc_hhhh_aaaa_rrrr _****_mmmm_oooo_nnnn______tttt_hhhh_oooo_uuuu_ssss_aaaa_nnnn_dddd_ssss______ssss_eeee_pppp
  100.             The separator for groups of digits to the left of the decimal
  101.             point in formatted monetary quantities.
  102.  
  103.      _cccc_hhhh_aaaa_rrrr _****_mmmm_oooo_nnnn______gggg_rrrr_oooo_uuuu_pppp_iiii_nnnn_gggg
  104.             A string in which each element is taken as an integer that
  105.             indicates the number of digits that comprise the current group in
  106.             a formatted monetary quantity.  The elements of _mmmm_oooo_nnnn______gggg_rrrr_oooo_uuuu_pppp_iiii_nnnn_gggg are
  107.             interpreted according to the rules described under _gggg_rrrr_oooo_uuuu_pppp_iiii_nnnn_gggg.
  108.  
  109.      _cccc_hhhh_aaaa_rrrr _****_pppp_oooo_ssss_iiii_tttt_iiii_vvvv_eeee______ssss_iiii_gggg_nnnn
  110.             The string used to indicate a nonnegative-valued formatted
  111.             monetary quantity.
  112.  
  113.      _cccc_hhhh_aaaa_rrrr _****_nnnn_eeee_gggg_aaaa_tttt_iiii_vvvv_eeee______ssss_iiii_gggg_nnnn
  114.             The string used to indicate a negative-valued formatted monetary
  115.             quantity.
  116.  
  117.      _cccc_hhhh_aaaa_rrrr _iiii_nnnn_tttt______ffff_rrrr_aaaa_cccc______dddd_iiii_gggg_iiii_tttt_ssss
  118.             The number of fractional digits (those to the right of the decimal
  119.             point) to be displayed in an internationally formatted monetary
  120.             quantity.
  121.  
  122.      _cccc_hhhh_aaaa_rrrr _ffff_rrrr_aaaa_cccc______dddd_iiii_gggg_iiii_tttt_ssss
  123.             The number of fractional digits (those to the right of the decimal
  124.             point) to be displayed in a formatted monetary quantity.
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. llllooooccccaaaalllleeeeccccoooonnnnvvvv((((3333CCCC))))                                                  llllooooccccaaaalllleeeeccccoooonnnnvvvv((((3333CCCC))))
  137.  
  138.  
  139.  
  140.      _cccc_hhhh_aaaa_rrrr _pppp______cccc_ssss______pppp_rrrr_eeee_cccc_eeee_dddd_eeee_ssss
  141.             Set to 1 or 0 if the _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll respectively precedes or
  142.             succeeds the value for a nonnegative formatted monetary quantity.
  143.  
  144.      _cccc_hhhh_aaaa_rrrr _pppp______ssss_eeee_pppp______bbbb_yyyy______ssss_pppp_aaaa_cccc_eeee
  145.             Set to 1 or 0 if the _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll respectively is or is not
  146.             separated by a space from the value for a nonnegative formatted
  147.             monetary quantity.
  148.  
  149.      _cccc_hhhh_aaaa_rrrr _nnnn______cccc_ssss______pppp_rrrr_eeee_cccc_eeee_dddd_eeee_ssss
  150.             Set to 1 or 0 if the _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll respectively precedes or
  151.             succeeds the value for a negative formatted monetary quantity.
  152.  
  153.      _cccc_hhhh_aaaa_rrrr _nnnn______ssss_eeee_pppp______bbbb_yyyy______ssss_pppp_aaaa_cccc_eeee
  154.             Set to 1 or 0 if the _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll respectively is or is not
  155.             separated by a space from the value for a negative formatted
  156.             monetary quantity.
  157.  
  158.      _cccc_hhhh_aaaa_rrrr _pppp______ssss_iiii_gggg_nnnn______pppp_oooo_ssss_nnnn
  159.             Set to a value indicating the positioning of the _pppp_oooo_ssss_iiii_tttt_iiii_vvvv_eeee______ssss_iiii_gggg_nnnn for
  160.             a nonnegative formatted monetary quantity.  The value of
  161.             _pppp______ssss_iiii_gggg_nnnn______pppp_oooo_ssss_nnnn is interpreted according to the following:
  162.  
  163.             _0000    Parentheses surround the quantity and _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll.
  164.  
  165.             _1111    The sign string precedes the quantity and _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll.
  166.  
  167.             _2222    The sign string succeeds the quantity and _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll.
  168.  
  169.             _3333    The sign string immediately precedes the _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll.
  170.  
  171.             _4444    The sign string immediately succeeds the _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll.
  172.  
  173.      _cccc_hhhh_aaaa_rrrr _nnnn______ssss_iiii_gggg_nnnn______pppp_oooo_ssss_nnnn
  174.             Set to a value indicating the positioning of the _nnnn_eeee_gggg_aaaa_tttt_iiii_vvvv_eeee______ssss_iiii_gggg_nnnn for
  175.             a negative formatted monetary quantity.  The value of _nnnn______ssss_iiii_gggg_nnnn______pppp_oooo_ssss_nnnn
  176.             is interpreted according to the rules described under _pppp______ssss_iiii_gggg_nnnn______pppp_oooo_ssss_nnnn.
  177.  
  178. RRRREEEETTTTUUUURRRRNNNNSSSS
  179.      _llll_oooo_cccc_aaaa_llll_eeee_cccc_oooo_nnnn_vvvv returns a pointer to the filled-in object.  The structure
  180.      pointed to by the return value may be overwritten by a subsequent call to
  181.      _llll_oooo_cccc_aaaa_llll_eeee_cccc_oooo_nnnn_vvvv.
  182.  
  183. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  184.      The following table illustrates the rules used by four countries to
  185.      format monetary quantities.
  186.  
  187.        Country    Positive format       Negative formatInternational format
  188.  
  189.        Italy      L.1.234    -L.1.234   ITL.1.234
  190.        Netherlands           F 1.234,56 F -1.234,56NLG 1.234,56
  191.        Norway     kr1.234,56 kr1.234,56-NOK 1.234,56
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. llllooooccccaaaalllleeeeccccoooonnnnvvvv((((3333CCCC))))                                                  llllooooccccaaaalllleeeeccccoooonnnnvvvv((((3333CCCC))))
  203.  
  204.  
  205.  
  206.       Switzerland SFrs.1,234.56         SFrs.1,234.56CCHF 1,234.56
  207.  
  208.      For these four countries, the respective values for the monetary members
  209.      of the structure returned by _llll_oooo_cccc_aaaa_llll_eeee_cccc_oooo_nnnn_vvvv are as follows:
  210.  
  211.                      Italy Netherlands        NorwaySwitzerland
  212.  
  213.        _iiii_nnnn_tttt______cccc_uuuu_rrrr_rrrr______ssss_yyyy_mmmm_bbbb_oooo_llll     _""""_IIII_TTTT_LLLL_...._""""    _""""_NNNN_LLLL_GGGG _""""   _""""_NNNN_OOOO_KKKK _""""_""""_CCCC_HHHH_FFFF _""""
  214.        _cccc_uuuu_rrrr_rrrr_eeee_nnnn_cccc_yyyy______ssss_yyyy_mmmm_bbbb_oooo_llll     _""""_LLLL_...._""""      _""""_FFFF_""""      _""""_kkkk_rrrr_""""_""""_SSSS_FFFF_rrrr_ssss_...._""""
  215.        _mmmm_oooo_nnnn______dddd_eeee_cccc_iiii_mmmm_aaaa_llll______pppp_oooo_iiii_nnnn_tttt   _""""_""""        _""""_,,,,_""""      _""""_,,,,_""""_""""_...._""""
  216.        _mmmm_oooo_nnnn______tttt_hhhh_oooo_uuuu_ssss_aaaa_nnnn_dddd_ssss______ssss_eeee_pppp   _""""_...._""""       _""""_...._""""      _""""_...._""""_""""_,,,,_""""
  217.        _mmmm_oooo_nnnn______gggg_rrrr_oooo_uuuu_pppp_iiii_nnnn_gggg  _""""_\\\\_3333_""""  _""""_\\\\_3333_""""      _""""_\\\\_3333_""""     _""""_\\\\_3333_""""
  218.        _pppp_oooo_ssss_iiii_tttt_iiii_vvvv_eeee______ssss_iiii_gggg_nnnn _""""_""""    _""""_""""        _""""_""""       _""""_""""
  219.        _nnnn_eeee_gggg_aaaa_tttt_iiii_vvvv_eeee______ssss_iiii_gggg_nnnn _""""_----_""""   _""""_----_""""       _""""_----_""""      _""""_CCCC_""""
  220.        _iiii_nnnn_tttt______ffff_rrrr_aaaa_cccc______dddd_iiii_gggg_iiii_tttt_ssss     _0000         _2222        _2222_2222
  221.        _ffff_rrrr_aaaa_cccc______dddd_iiii_gggg_iiii_tttt_ssss   _0000     _2222         _2222        _2222
  222.        _pppp______cccc_ssss______pppp_rrrr_eeee_cccc_eeee_dddd_eeee_ssss _1111     _1111         _1111        _1111
  223.        _pppp______ssss_eeee_pppp______bbbb_yyyy______ssss_pppp_aaaa_cccc_eeee      _0000         _1111        _0000_0000
  224.        _nnnn______cccc_ssss______pppp_rrrr_eeee_cccc_eeee_dddd_eeee_ssss _1111     _1111         _1111        _1111
  225.        _nnnn______ssss_eeee_pppp______bbbb_yyyy______ssss_pppp_aaaa_cccc_eeee      _0000         _1111        _0000_0000
  226.        _pppp______ssss_iiii_gggg_nnnn______pppp_oooo_ssss_nnnn   _1111     _1111         _1111        _1111
  227.        _nnnn______ssss_iiii_gggg_nnnn______pppp_oooo_ssss_nnnn   _1111     _4444         _2222        _2222
  228.  
  229. FFFFIIIILLLLEEEESSSS
  230.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_OOOO_NNNN_EEEE_TTTT_AAAA_RRRR_YYYY        _LLLL_CCCC______MMMM_OOOO_NNNN_EEEE_TTTT_AAAA_RRRR_YYYY database for _l_o_c_a_l_e
  231.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______NNNN_UUUU_MMMM_EEEE_RRRR_IIII_CCCC          _LLLL_CCCC______NNNN_UUUU_MMMM_EEEE_RRRR_IIII_CCCC database for _l_o_c_a_l_e
  232.  
  233. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  234.      _mmmm_oooo_nnnn_tttt_bbbb_llll(1M), _ssss_eeee_tttt_llll_oooo_cccc_aaaa_llll_eeee(3C).
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.